package com.sl.mes.db.service.pd;

import com.github.pagehelper.PageHelper;
import com.sl.mes.db.dao.PdWkgMarMapper;
import com.sl.mes.db.itf.pd.IPdWkgMar;
import com.sl.mes.db.vo.PdWkgMar;
import com.sl.mes.db.vo.PdWkgMarExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class PdWkgMarService implements IPdWkgMar {
    @Resource
    private PdWkgMarMapper pdWkgMarMapper;

    @Override
    public List<PdWkgMar> queryByWkgMar(String pk_wkg_mar, Integer pageNo, Integer pageSize) {
        PdWkgMarExample example = new PdWkgMarExample();
        PdWkgMarExample.Criteria criteria = example.createCriteria();
        criteria.andPkWkgMarEqualTo(pk_wkg_mar);
        PageHelper.startPage(pageNo, pageSize);
        return pdWkgMarMapper.selectByExample(example);
    }
}
